/**
 * Auto Complete using Fusion Table
 * Only returns unique names
 * @param {string} FTtableID The Id of the Fusion Table
 * @param {string} FTcolumnID The Fusion table column which will be searched for Auto Complete
 * @param {string} ACtagID The html ID name for the Auto Complete
 */
function AutoCompleteFT(FTtableID, FTcolumnID, ACtagID) { 
	var queryText = encodeURIComponent(
		"SELECT '" + FTcolumnID + "', COUNT() " +
		"FROM " + FTtableID + " GROUP BY '" + FTcolumnID + "'");
	//alert(queryText);
	var query = new google.visualization.Query(
		'http://www.google.com/fusiontables/gvizdata?tq='  + queryText); 
	query.send(function getData(response) { 
		//alert(autotag);
		numRows = response.getDataTable().getNumberOfRows(); 
		// Create the list of results for display of autocomplete 
		results = []; 
		for(i = 0; i < numRows; i++) { 
			results.push(response.getDataTable().getValue(i, 0)) ; 
		}	 
		// Use the results to create the autocomplete options
		$("#"+ACtagID).autocomplete({ 
			source: results, 
			minLength: 2
		}); 
	});
 }